<?php

class Logger {
	
	private static $instance;
	
	public static function getInstance(){
		if(self::$instance == null){
			self::$instance = new Logger();
		}
		
		return self::$instance;
	}
	
	public function warn($message){
		echo $message;
	}
	
	
	public function error($message, Exception  $e){
		echo $message . "\n" . $e->getMessage();	
	}
}

?>